<?php
	session_start();
	require_once('./config.php');
	
	$action = isset($_GET['p']) ? $_GET['p'] : "";
	
	switch ($action)
	{
		case 'login':
			include(ADMINPATH.'login.php');
			break;
		
		case 'userAdmin':
			include(ADMINPATH.'userAdmin.php');
			break;
		
		case 'competitionAdmin':
			include(ADMINPATH.'competitionAdmin.php');
			break;
			
		default:
			getHeader();
			getPanel();
?>
			<span>你已经进入管理界面</span>
<?php
			getFooter();
	}
?>